package com.example.shengyin.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 活动对象 d_event
 * 
 * @author ruoyi
 * @date 2023-07-31
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("活动类")
public class Event {
    /** $column.columnComment */
    private Long id;
    /** 内容 */
    @ApiModelProperty("内容")
    private String event;
    @ApiModelProperty("发布人")
    private String poster;
    @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm")
    @ApiModelProperty("发布时间")
    private Date posttime;
    /** 开始时间 */
    @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm")
    @ApiModelProperty("开始时间")
    private Date starttime;

    /** 结束时间 */
   // @DateTimeFormat(pattern = "yyyy-MM-dd 'T' HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm")
    @ApiModelProperty("结束时间")
    private Date finishtime;
    /** 地点 */
    @ApiModelProperty("地点")
    private String addr;
    /** 参加人数 */
    @ApiModelProperty("参加人数")
    private int nums;
    /** 类型 */
    @ApiModelProperty("类型")
    private String stype;
    /** 浏览人数 */ 
    @ApiModelProperty("浏览人数")
    private int visitnums;
    /** 标题 */
    @ApiModelProperty("标题")
    private String title;
    /** 封面图片地址 */
    @ApiModelProperty("封面图片地址")
    private String coverimg;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getEvent() {
        return event;
    }

    public void setEvent(String event) {
        this.event = event;
    }

    public String getPoster() {
        return poster;
    }

    public void setPoster(String poster) {
        this.poster = poster;
    }

    public Date getPosttime() {
        return posttime;
    }

    public void setPosttime(Date posttime) {
        this.posttime = posttime;
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    public Date getFinishtime() {
        return finishtime;
    }

    public void setFinishtime(Date finishtime) {
        this.finishtime = finishtime;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public int getNums() {
        return nums;
    }

    public void setNums(int nums) {
        this.nums = nums;
    }

    public String getStype() {
        return stype;
    }

    public void setStype(String stype) {
        this.stype = stype;
    }

    public int getVisitnums() {
        return visitnums;
    }

    public void setVisitnums(int visitnums) {
        this.visitnums = visitnums;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCoverimg() {
        return coverimg;
    }

    public void setCoverimg(String coverimg) {
        this.coverimg = coverimg;
    }

    @Override
    public String toString() {
        return "Event{" +
                "id=" + id +
                ", event='" + event + '\'' +
                ", poster='" + poster + '\'' +
                ", posttime=" + posttime +
                ", starttime=" + starttime +
                ", finishtime=" + finishtime +
                ", addr='" + addr + '\'' +
                ", nums='" + nums + '\'' +
                ", stype='" + stype + '\'' +
                ", visitnums='" + visitnums + '\'' +
                ", title='" + title + '\'' +
                ", coverimg='" + coverimg + '\'' +
                '}';
    }
}
